import 'package:flutter_shop/http/http.dart';
import 'package:flutter_shop/pages/base/common_result.dart';
import 'package:flutter_shop/pages/member/select_people/entity/people_info.dart';

/// Title:SelectPeopleModel <br/>
/// Description: <br/>
/// author:xiemiao <br/>
/// date: 2020-04-17  <br/>
/// version 1.0 <br/>
class SelectPeopleModel {
  ///获取部门人员tree
  Future<List<PeopleInfo>> getPeopleTree() async {
    CommonResult<List<PeopleInfo>> result = await Http().post("http://mockapi.shandaiguanjia.com/mockapi/mock/1/getPersonTree");
    return result.data;
  }
}
